package cn.xxi.ai.application.dto;

import lombok.Getter;

import java.time.LocalDateTime;
import java.util.Map;

@Getter
public class WorkflowFinished extends FinishedEvent {

    private final Long workflowId;
    private final Map<String, Object> inputs;
    private final Map<String, Object> outputs;

    public WorkflowFinished(Long workflowId, Map<String, Object> inputs, Map<String, Object> outputs, Status status, String error, LocalDateTime startedAt) {
        super(status, error, startedAt);
        this.workflowId = workflowId;
        this.inputs = inputs;
        this.outputs = outputs;
    }
}
